package com.chenfan.finance.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * cf_salesdeliver_detail
 * @author 
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CfSalesdeliverDetail  implements Serializable {
    private String srcTid;
    private Long sysId;

    private Integer recId;

    private Integer stockoutId;

    /**
     * 源单据类别 1销售订单2,调拨出库3,采购出库4,生产出库5,盘亏出库6,其他出库
     */
    private Byte srcOrderType;

    private Long srcOrderDetailId;

    /**
     * 基本单位
     */
    private Integer baseUnitId;

    /**
     * 辅助单位
     */
    private Integer unitId;

    /**
     * 单位换算
     */
    private BigDecimal unitRatio;

    /**
     * 辅助数量
     */
    private BigDecimal num2;

    /**
     * 货品数量
     */
    private BigDecimal num;

    /**
     * 最终价格，share_price删掉了，取代share_price
     */
    private BigDecimal price;

    /**
     * 总货款
     */
    private BigDecimal totalAmount;

    /**
     * 成本价
     */
    private BigDecimal costPrice;

    private String goodsName;

    private Long goodsId;

    private String goodsNo;

    private String specName;

    private Integer specId;

    private String specNo;

    private String specCode;

    private BigDecimal weight;

    private Integer positionId;

    private Integer batchId;

    private Date expireDate;

    /**
     * 是否验货，用于挂起，已标记为验货的不需要再验货
     */
    private Byte isExamined;

    /**
     * 	是否包装
     */
    private Byte isPackage;

    /**
     * 是否允许0成本
     */
    private Byte isZeroCost;

    /**
     * 0未验货,1扫描验货,2手工验货
     */
    private Byte scanType;

    private String remark;

    private Date modified;

    private Date created;
    private Date taskYearMonth;

    private static final long serialVersionUID = 1L;
}